// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'CostCalculationRecordId',
        footer: "Foots",
        cnName: '成本计算',
        name: 'CostCalculationRecord',
        newTabEdit: false,
        url: "/CostCalculationRecord/",
        sortName: "CostCalculationRecordId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {};
    const editFormOptions = [];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'CostCalculationRecordId',title:'成本计算记录标识',type:'int',width:80,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProductTaskId',title:'生产任务标识',type:'int',width:110,align:'left'},
                       {field:'PeriodYear',title:'会计年度',type:'int',width:110,require:true,align:'left'},
                       {field:'PeriodMonth',title:'期间',type:'int',width:110,require:true,align:'left'},
                       {field:'MaterialId',title:'产品标识',type:'int',width:110,require:true,align:'left'},
                       {field:'LastPeriodAssortsCount',title:'上期剩余套数',type:'decimal',width:110,require:true,align:'left'},
                       {field:'LastPeriodAssortsAmount',title:'上期剩余领料金额',type:'decimal',width:110,require:true,align:'left'},
                       {field:'PeriodAssortsCount',title:'关键件套数',type:'decimal',width:110,require:true,align:'left'},
                       {field:'PeriodAssortsCountAmount',title:'关键件套数金额',type:'decimal',width:110,require:true,align:'left'},
                       {field:'PeriodAmount',title:'本期领料金额',type:'decimal',width:110,require:true,align:'left'},
                       {field:'StockInQty',title:'产品入库数量',type:'decimal',width:110,require:true,align:'left'},
                       {field:'ExpensePrice',title:'产品成本单价',type:'decimal',width:110,require:true,align:'left'},
                       {field:'ExpenseAmount',title:'产品成本总金额',type:'decimal',width:110,require:true,align:'left'},
                       {field:'BillDate',title:'日期',type:'datetime',width:110,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}